package com.corpgovernment.travelstandard.controller;

import com.corpgovernment.api.travelstandard.vo.request.QueryProductSwitchRequest;
import com.corpgovernment.api.travelstandard.vo.response.QueryProductSwitchResponse;
import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.travelstandard.impl.TravelStandardManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 * @author zwmao
 * @version 1.0.0
 * @date 2024/1/26
 **/
@RestController
@RequestMapping("travelStandardManage")
public class TravelStandardManageController {
    @Autowired
    private TravelStandardManageService travelStandardManageService;

    @RequestMapping("/queryTravelStandardByProduct")
    public JSONResult<QueryProductSwitchResponse> queryTravelStandardByProduct(@RequestBody QueryProductSwitchRequest request){
        return JSONResult.success(travelStandardManageService.queryTravelStandardByProduct(request));
    }
}
